package com.guoguo.tangshisan.controller;

import com.guoguo.tangshisan.service.PosterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class PosterController {
    @Autowired
    private PosterService posterService;

    /**
     * 生成海报
     * @return
     */
    @RequestMapping("/create/poster")
    public String createPoster() {
        posterService.createPoster();
        return "生成成功";
    }
}
